<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue</title>
</head>
<script src="vue.js"></script>
<body>
    <style>
        .color{color: red}
        .font{font-size: 200px}
        .greent{color:green}
    </style>
    <div id="app">
        <h1 :class="hd">后端君</h1>
        <hr>
        <h2 :class="[success,'font']">前端申</h2>
    </div>

<script>
    var app=new Vue({
        el:'#app',
        data:{
            hd:{color:false,font:true},
            success:'color'

        }
    });

</script>
</body>
</html>